

const views = require('./../utils/mysqlHelper')
module.exports =  (router) => {
  router.get('/welcome', async function (ctx, next) {
    ctx.state = {
      title: 'koa2 title'
    };

    await ctx.render('welcome', {title: ctx.state});
  })

  router.get("/test",async  (ctx,next)=>{
    let result =  await views.test();
    ctx.body=result;
  })

}
